package com.turing.post.cardmanagement.util;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;
import com.turing.post.util.PCPSWebInput;

/**
 * @author zxp
 * @Apr 9, 2013
 */
@Remote
@Local
public interface AppManagementBusiness {

	/**
	 * 新增 应用管理信息
	 * 
	 * @param input
	 * @param amg
	 * @throws PCPSApplicationException
	 */
	public void insertAppManagement(PCPSWebInput input, AppManagement amg)
			throws PCPSApplicationException;

	/**
	 * 修改 应用管理信息
	 * 
	 * @param input
	 * @param amg
	 * @throws PCPSApplicationException
	 */
	public void updateAppManagement(PCPSWebInput input, AppManagement amg)
			throws PCPSApplicationException;

	/**
	 * 解析预发行前卡片检查的APDU指令结果,如成功则产生卡片发行数据到卡内的APDU指令列表
	 * 
	 * @param aeo
	 * @throws PCPSApplicationException
	 */
	public ApduExecuteObj generateReadCardApdu();

	/**
	 * 解析预发行卡片处理的APDU指令结果
	 * 
	 * @param aeo
	 * @throws PCPSApplicationException
	 */
	public AppZoneInf parseReadCardApdu(ApduExecuteObj aeo)
			throws PCPSApplicationException;
}
